package com.example.text.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.text.entity.AdminRole;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


/**
 * 规则表
 *
 * @author hjj
 * @email 1041914134@qq.com
 * @date 2020-06-23 16:02:15
 */
public interface AdminRoleService  extends IService<AdminRole> {

     List<AdminRole> listRolesByUser(String username);


     //查询所有的角色规则 （分页）
     IPage<AdminRole> selectAdminRolePage(Page<AdminRole> page);

     List<AdminRole> selectAll();

     AdminRole updateRoleStatus(AdminRole role);

     void addOrUpdate(AdminRole adminRole);

     void editRole(@RequestBody AdminRole role);

     //删除角色，包括对应的菜单
     void deleteRole(AdminRole requestRole);

     //批量删除角色，包括对应的菜单
     void deleteRoles(String[] RoleIds);

}
